/*	kd:
	
	There CAN be multiple shopkeepers (or even just switching between one
	shopkeeper and none). This here makes sure they switch only if necessary,
	and also do so correctly.
	
	If there's no shopkeeper, the item descriptions will just use Nithor's
	lines instead.
	
	*/

struct Gcs_ShopkeeperControl {
	private bool					disable_keeper;
	private bool					force_keeper;
	private bool					force_comment;
	private class <Gcs_Shopkeeper>	pref_keeper;
	private class <Gcs_Shopkeeper>	pref_comment;
	
	private Gcs_Shopkeeper			active_keeper;
	
	void Init (PlayerInfo player) {
		disable_keeper	= CvarEx.GetBoolDef("gc_shop_noshopkeeper", player);
		force_keeper	= CvarEx.GetBoolDef("gc_shop_forcedshopkeeper", player);
		force_comment	= CvarEx.GetBoolDef("gc_shop_forcedcommentary", player);
		pref_keeper		= CvarEx.GetStringDef(
			"gc_shop_preferredshopkeeper", player, "gcs_nithor");
		pref_comment	= CvarEx.GetStringDef(
			"gc_shop_preferredcommentary", player, "gcs_nithor");
	}
	
	// kd: Call this when you want the shopkeeper to check out (if needed).
	void CheckOut (Gc_Shop_Inv inv) {
		if(!inv) {
			return;
		}
	}
	
	// kd: And call this if you want to call in the next one.
	void CheckIn () const {
		
	}
}